-
Notifications
You must be signed in to change notification settings - Fork 96
Adding new test and docs for issue #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| Args: | ||
| space: Configuration space | ||
| vector: Parameter vector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| vector: Parameter vector | |
| vector: The hyperparameter vector to check. | |
| Raises an Exception if the vector is not valid. | ||
| Args: | ||
| space: Configuration space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| space: Configuration space | |
| space: The configuration space to check the parameter vector against. | |
| Args: | ||
| space: Configuration space | ||
| vector: Parameter vector | ||
| allow_inactive_with_values: If True, inactive parameters are allowed to have values in the vector. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| allow_inactive_with_values: If True, inactive parameters are allowed to have values in the vector. | |
| allow_inactive_with_values: If True, inactive hyperparameters are allowed to have values in the vector. | |
| vector: np.ndarray, | ||
| allow_inactive_with_values: bool = False, | ||
| ) -> None: | ||
| """Checks whether a given parameter vector is valid according to the conditionals and forbiddens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """Checks whether a given parameter vector is valid according to the conditionals and forbiddens. | |
| """Check if a given hyperparameter vector is valid according to the conditionals and forbiddens. | |
|
|
||
| # Parameter A has no conditions; check if the configuration fails if a > 10 | ||
| with pytest.raises(IllegalValueError): | ||
| sample["a"] = 101 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this actually trigger a call to check configuration or does this fail somewhere else?
For issue #399 ;
Added test for the raised issue, which passes. Which parts of the documentation should be clarified to reflect that this is indeed tested by ConfigSpace?